﻿using AutoMapper;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using TR.Domain.Entity.rbac_QXGL;

namespace Che.AppService.APPRole
{
    public class APPRolejue:APPIRolejue
    {
        private readonly IMapper mapper;
        private readonly Che.Domain.repository.RoleJue.IRolejue iu;
        public APPRolejue(IMapper mapper, Che.Domain.repository.RoleJue.IRolejue iu)
        {
            this.mapper = mapper;
            this.iu = iu;
        }

        public Task<List<CeBianlan>> CeBianlanSelectAsync(string jid)
        {
            return iu.CeBianlanSelectAsync(jid);
        }

        public Task<rbac_UserRoles> queryU_rolesiD(int U_rolesiD)
        {
            return iu.queryU_rolesiD(U_rolesiD);
        }

        public void serverTable()
        {
             iu.serverTable();
        }

        public Task<Domain.Entity.Roleju.FileInfo> UploadAsync(IFormFile file)
        {
            return iu.UploadAsync(file);
        }
    }
}
